package com.yeyuanqi.hottop.scheduletask;

import com.yeyuanqi.hottop.untils.PythonUntils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Async;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;


@Component
public class WordCloudScheduleTask {

    @Autowired
    private PythonUntils pythonUntils;

    //每小时31分生成当天词云图
    @Scheduled(cron = "00 14 */1 * * ?")
    public void wordCloudpy(){
        pythonUntils.startWordcloud();
    }
}
